package com.coding.dao;

import com.coding.pojo.Thumb;
import org.apache.ibatis.annotations.Param;

public interface ThumbDao {
    int deleteByPrimaryKey(Integer thumb_id);

    int deleteThumb(@Param("thumb_user_id") int thumb_user_id, @Param("thumb_source_id") int thumb_source_id, @Param("thumb_kind") String thumb_kind);

    int countThumb( @Param("thumb_source_id") int thumb_source_id, @Param("thumb_kind") String thumb_kind);

    int insert(Thumb record);

    int insertSelective(Thumb record);

    Thumb selectByPrimaryKey(Integer thumb_id);

    Thumb selectAll(@Param("thumb_user_id") int thumb_user_id, @Param("thumb_source_id") int thumb_source_id, @Param("thumb_kind") String thumb_kind);

    int updateByPrimaryKeySelective(Thumb record);

    int updateByPrimaryKey(Thumb record);
}